<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
	'id'=>'period-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="help-block">Campos com <span class="required">*</span> são obrigatórios.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row span5">
	<?php echo $form->labelEx($model,'begin_date'); ?>
	<?php $this->widget('zii.widgets.jui.CJuiDatePicker', array(
    'model' => $model,
    'attribute' => 'begin_date',
    'htmlOptions' => array(
        'size' => '10',         // textField size
        'maxlength' => '10',    // textField maxlength
    ),
	));
	?>
	<?php echo $form->error($model,'begin_date'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'end_date'); ?>
	<?php $this->widget('zii.widgets.jui.CJuiDatePicker', array(
    'model' => $model,
    'attribute' => 'end_date',
    'htmlOptions' => array(
        'size' => '10',         // textField size
        'maxlength' => '10',    // textField maxlength
    ),
	));
	?>
	<?php echo $form->error($model,'end_date'); ?>
	</div>

	<div class="form-actions button_center">
		<?php $this->widget('bootstrap.widgets.TbButton', array(
			'buttonType'=>'submit',
			'type'=>'primary',
			'label'=>$model->isNewRecord ? 'Cadastrar' : 'Salvar',
		)); ?>
	</div>

<?php $this->endWidget(); ?>
